package com.blame.onlinemusicserver.mapper;


import com.blame.onlinemusicserver.model.Music;
import com.blame.onlinemusicserver.model.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MusicMapper {

    Integer insert(String title,String singer,String time,String url,Integer userid);

    Integer selectByTitleAndSinger(String title, String singer);

    Integer deleteMusicById(Integer musicId);

    Music selectMusicById(Integer musicId);

    List<Music> findMusicByTitle(String name);

    List<Music> findMusic();
}
